[ "Heading" => "Date", "DefaultToDescendingSort" => true, "DefaultSortField" => true, "ValueFunction" => function ($Item, $FieldId) { return StdLib::getPrettyTimestamp($Item["Date"]); } ], "Url" => [ "Heading" => "Url", "AllowHTML" => true, "Sortable" => false, "ValueFunction" => function ($Item, $FieldId) { return '' .StdLib::NeatlyTruncateString($Item["Url"], 50).''; } ], "Resource" => [ "Heading" => "Resource", "AllowHTML" => true, "Sortable" => false, "ValueFunction" => function ($Item, $FieldId) { $RecordId = $Item["RecordId"]; $Resource = new Record($RecordId); return '' .htmlspecialchars($Resource->GetMapped("Title")).''; }, ], "Error" => [ "Heading" => "Error", ], ]; $ErrorList = new ItemListUI($ErrorListFields, $H_TransportUIs[TAB_ERRORS]); $ErrorList->Heading("Fetch Errors"); $ErrorList->ItemsPerPage($H_ResultsPerPage); $ErrorList->BaseLink($H_BaseLink."&AT=".TAB_ERRORS); $FetchLogFields = [ "FetchDate" => [ "Heading" => "Date", "DefaultToDescendingSort" => true, "DefaultSortField" => true, "ValueFunction" => function ($Item, $FieldId) { return StdLib::getPrettyTimestamp($Item["FetchDate"]); } ], "Url" => [ "Heading" => "File", "AllowHTML" => true, "Sortable" => false, "ValueFunction" => function ($Item, $FieldId) { $FileId = $Item["FileId"]; $File = new File($FileId); return '' .htmlspecialchars($File->Name()).''; } ], "Resource" => [ "Heading" => "Resource", "AllowHTML" => true, "Sortable" => false, "ValueFunction" => function ($Item, $FieldId) { $FileId = $Item["FileId"]; $File = new File($FileId); $RecordId = $File->ResourceId(); $Resource = new Record($RecordId); return '' .htmlspecialchars($Resource->GetMapped("Title")).''; }, ], ]; $FetchLog = new ItemListUI($FetchLogFields, $H_TransportUIs[TAB_FETCHES]); $FetchLog->Heading("Successful Fetch Log"); $FetchLog->ItemsPerPage($H_ResultsPerPage); $FetchLog->BaseLink($H_BaseLink."&AT=".TAB_FETCHES); $RPOptionList = new HtmlOptionList( "RP", [ 50 => 50, 100 => 100, 250 => 250, 500 => 500, 750 => 750 ], $H_ResultsPerPage ); $RPOptionList->SubmitOnChange(true); # pull out the currently active tab $TabParameter = "{active: ".$H_ActiveTab."}"; # load the js and css necessary for a tabbed interface $GLOBALS["AF"]->RequireUIFile( 'jquery-ui.css', ApplicationFramework::ORDER_FIRST ); $GLOBALS["AF"]->RequireUIFile('jquery-ui.js'); ?>
Monitoring URLs Entries Per Page: GetHtml(); ?>
Display($H_ErrorList, $H_TotalErrors, $H_StartIndexes[TAB_ERRORS]); ?>
Display($H_FetchList, $H_TotalFetches, $H_StartIndexes[TAB_FETCHES]); ?>